<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>测试</title>
    <style>
        div{
            background: linear-gradient(45deg,red 25%,yellow 25%,yellow 50%,red 50%,red 75%,yellow 75%);
            background-size: 30px 30px;
            -webkit-background-clip: text;
            color:transparent;
            text-align: center;
            font-weight: 900;
            font-size: 50px
        }
    </style>
</head>
<body>
    <div>
        顾天将降大任于斯人也，必先苦其心志，劳其筋骨，饿其体肤，空乏其身
    </div>
    <div>
        a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 
        a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 
    </div>

</body>
</html>